module game
{
	export class RegExpUtil
	{
		public constructor()
		{
		}

		/**检测是否符合邮箱地址格式 */
		public static checkEmail(str:string):boolean
		{
			var reg = /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
			return reg.test(str);
		}
	}
}